package com.hoshiicloud.user.service.company;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.user.entity.company.ComDepartments;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 部门 服务类
 * </p>
 *
 * @author WGJ
 * @since 2019-04-22
 */
public interface IComDepartmentsService extends IService<ComDepartments> {

    ComDepartments getById(Long id);

    long insertDept(ComDepartments entity);
    @Override
    boolean updateById(ComDepartments entity);

    /**
     *@Author:campchen
     *@Description:
     *@Date:下午 03:46 2019/9/11
     *@Param:
     *@return:
     */
    IPage<ComDepartments> getPage(IPage<ComDepartments> page, QueryWrapper<ComDepartments> queryWrapper, String key);
}
